import 'package:mongo_dart/mongo_dart.dart';

main() async {

  Db db = new Db("mongodb://localhost:27017/blog");
  await db.open();
  var User = db.collection('user');
  var user = User.insert({"name":"Joephon","age":31});
  print(user);
  await db.close();
}